from django.urls import path,re_path
from rest_framework_jwt.views import obtain_jwt_token
from .views import CaptchaAPIView,UserAPIView,SMSAPIView,CheckPhone
urlpatterns = [
    path("login/",obtain_jwt_token),
    path("captcha/",CaptchaAPIView.as_view()),
    path("",UserAPIView.as_view()),
    re_path("sms/(?P<phone>1[3-9]\d{9})/",SMSAPIView.as_view()),
    re_path("check_phone/(?P<phone>1[3-9]\d{9})/",CheckPhone.as_view())
]
